package com.zhongli.devplatform.dto.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotBlank;

/**
 * 用户登录 数据传输对象
 */
@Data
@Validated
@ApiModel(value = "用户登录",description = "用户登录数据传输对象")
public class LoginDTO {

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(name = "accountNum",value = "手机号必填", required = true)
    private String accountNum;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(name = "password",value = "密码必填", required = true)
    private String password;

}
